<template>
    <div class="application">
        <div class="search">
            <el-input v-model="searchTxt" placeholder="请输入搜索关键词"></el-input>
            <el-button class="search-btn">搜索</el-button>
        </div>
        <div class="application-app">
            <div class="title">最常使用</div>
            <div class="grid">
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/email.png" alt="">
                        <span>内部邮件</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/edu-admin-icon.png" alt="">
                        <span>教务管理系统</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/task.png" alt="">
                        <span>任务中心</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/caiwu.png" alt="">
                        <span>财务系统</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/shixun.png" alt="">
                        <span> 全员实训管理系统</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="hot-application">
            <div class="title">热门应用</div>
            <div class="grid">
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/email.png" alt="">
                        <span>内部邮件</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/edu-admin-icon.png" alt="">
                        <span>教务管理系统</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/task.png" alt="">
                        <span>任务中心</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/caiwu.png" alt="">
                        <span>财务系统</span>
                    </div>
                </div>
                <div class="grid-info">
                    <div class="item">
                        <img src="../../assets/shixun.png" alt="">
                        <span> 全员实训管理系统</span>
                    </div>
                </div>
            </div>
        </div>
        <TabsPhone />
    </div>
</template>

<script>
import TabsPhone from '@/components/TabsPhone.vue';

export default {
    name: 'application',
    components: {
        TabsPhone
    },
    data() {

        return {

        }
    },
    mounted() {
    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
.application {
    background-color: #F1F3F5;
    padding: 10px 0 100px;
    min-height: calc(100vh - 50px);

    .search {
        display: flex;
        margin: 10px 10px;

        .el-input {
            :deep .el-input__inner {
                border: none;
                border-radius: 0;
                height: 38px;

                &:placeholder {
                    color: rgba($color: #333333, $alpha: 0.3);
                }
            }

        }

        .search-btn {
            height: 38px;
            background-color: getVar('underLine');
            color: white;
            border-radius: 0;
            border: 1px solid getVar('underLine');
            margin-left: 3px;
        }
    }

    .application-app,
    .hot-application {
        background-color: white;
        margin: 0 10px;

        .title {
            padding: 10px 20px 20px;
            font-weight: bold;
            color: #202020;
            font-size: 18px;
        }

        .grid {
            display: flex;
            flex-wrap: wrap;

            .grid-info {
                width: 25%;
                margin-bottom: 30px;
                padding: 0 5px;
                box-sizing: border-box;

                @include respond-to('pad') {
                    width: 50%;
                }

                .item {
                    display: flex;
                    justify-content: center;
                    flex-direction: column;
                    align-items: center;
                    text-align: center;

                    img {
                        width: 40px;
                        height: 40px;
                        color: #4881EF;
                        margin-bottom: 8px;
                    }

                    span {
                        margin-top: 8px;
                    }
                }
            }
        }
    }

    .hot-application {
        margin-top: 20px;
    }
}
</style>